import request from "@/utils/request";

// 维修登记列表
export function listTable(query) {
  return request({
    url: "/maintenance/register/list",
    method: "get",
    params: query,
  });
}
// 	新增维修登记
export function addRegister(data) {
  return request({
    url: "/maintenance/register",
    method: "post",
    data
  });
}
// 	删除维修登记
export function delRegister(itemIds) {
  return request({
    url: "/maintenance/register/" + itemIds,
    method: "delete",
  });
}

// 	删除维修登记
export function getRegister(id) {
  return request({
    url: "/maintenance/register/" + id,
    method: "get",
  });
}

// 修改维修登记
export function updateRegister(data) {
  return request({
    url: '/maintenance/register/',
    method: 'put',
    data
  })
}
